import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:get/get_core/src/get_main.dart';

import '../better_player_plus_page/better_player_plus_page.dart';

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.green,
      body: Stack(
        children: [
          Center(
            child: Text("cxcxcxcxc"),
          ),
          Column(
            children: [
              const SizedBox(height: 100),
              TextButton(
                  onPressed: () {
                    Get.toNamed('/address');
                  },
                  child: Text("跳转到地址页面")),
              TextButton(
                  onPressed: () {
                    Get.toNamed('/keyboard');
                  },
                  child: Text("keyboard")),
              TextButton(
                  onPressed: () {
                    Get.toNamed('/prompt');
                  },
                  child: Text("prompt")),
              TextButton(
                  onPressed: () {
                    Get.toNamed('/pathbgview');
                  },
                  child: Text("PathBgView")),
              TextButton(
                  onPressed: () {
                    Get.toNamed('/parallax');
                  },
                  child: Text("parallax")),
              TextButton(
                  onPressed: () {
                    Get.to(BetterPlayerPlusPage());
                  },
                  child: Text("视频播放器")),
            ],
          )
        ],
      ),
    );
  }
}
